﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace OptionsConfigurationSample.Controllers
{
    public class AboutController : Controller
    {
        private readonly IOptionsSnapshot<Class> _optionAccessor;
        public AboutController(IOptionsSnapshot<Class> optionAccessor)
        {
            this._optionAccessor = optionAccessor;
        }
        // GET: /<controller>/
        public IActionResult Index()
        {
            return View(this._optionAccessor.Value);
        }
    }
}
